a {
    flex-direction: row;
    transition: all 1s
}

b { transition: all 1s }
